Multithreading interview questions in Java